<?php

namespace App\Module\Api\Controllers;

use App\Module\Api\Validator\CommonActonValidator;
use App\System\Base\Repositories\BaseNotificationRecordRepository;
use App\System\Base\Services\UserTokenService;

/**
 * 消息列表
 */
class MessageListController extends Controller
{
    public function index()
    {
        $user_id = UserTokenService::getMasterId();
        (new CommonActonValidator())->check();
        $order = BaseNotificationRecordRepository::getInstance();
        $data = $order->getApiList($this->query,$this->table,$user_id);
        return apiResponse($data);
    }
}
